<div class="grid_12">
	<h1 class="nickname">
		<?= $this->fullname;?>
	</h1>
	<div class="flash"><?= $this->flashMessenger(); ?></div>
	<div class="clearfix"></div>
	<div class="grid_3 alpha">
		<div class="avatar">
			<?php if($this->user->localphoto):?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/' . $this->user->localphoto, $this->user->username);?>
			<?php elseif($this->user->photourl):?>
				<?= $this->Getimg($this->user->photourl, $this->user->username);?>
			<?php else:?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/nopic.jpg', $this->user->username);?>
			<?php endif;?>
		</div>
		<div class="usermenu">
			<ul>
				<li>
					<a href="<?= $this->url(array(),'users_index_photo');?>" title="<?= $this->translate('Изменить фото');?>">
						<?= $this->translate('Изменить фото');?>
					</a>
				</li>
				<li>
					<a href="<?= $this->url(array(),'users_index_profile');?>" title="<?= $this->translate('Настройки');?>">
						<?= $this->translate('Настройки');?>
					</a>
				</li>
				<li>
					<a href="<?= $this->url(array(),'users_index_logout');?>" title="<?= $this->translate('Выйти');?>">
						<?= $this->translate('Выйти');?>
					</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="grid_9 omega">
		<ul>
			<li>
				<span class="label"><?= $this->translate('Дата рождения:');?></span> <?= $this->Getdate($this->user->Profile_Users_Alias->birthday);?>
			</li>
			<li>
				<span class="label"><?= $this->translate('Пол:');?></span> 
				<?php if($this->user->Profile_Users_Alias->sex):?>
					<?= $this->translate('Мужской');?>
				<?php else: ?>
					<?= $this->translate('Женский');?>
				<?php endif; ?>
			</li>
			<li>
				<span class="label"><?= $this->translate('О пользователе:');?></span> <?= $this->user->Profile_Users_Alias->about;?>
			</li>
			<li>
				<span class="label"><?= $this->translate('Email:');?></span> <a href="mailto:<?= $this->user->email;?>"><?= $this->user->email;?></a>
			</li>
		</ul>
	</div>
</div>